from django.contrib import admin
from .models import CityDictModel, CourseOrg, TeacherModel

# Register your models here.

@admin.register(CityDictModel)
class CityDictAdmin(admin.ModelAdmin):
    list_display = ['id', 'name', 'desc', 'add_time']
    list_display_links = ['name']


@admin.register(CourseOrg)
class CourseOrgAdmin(admin.ModelAdmin):
    list_display = ['id', 'name', 'desc', 'tag', 'catgory', 'click_nums', 'fav_nums', 'address', 'city', 'students', 'course_nums', 'add_time']
    list_display_links = ['name']


@admin.register(TeacherModel)
class TeacherAdmin(admin.ModelAdmin):
    list_display = ['id', 'org', 'name', 'work_years', 'work_company', 'work_position', 'points', 'click_nums', 'fav_nums', 'add_time']
    list_display_links = ['name']